package demo3;

import java.io.*;
import java.util.Scanner;

public class Test02 {
    public static void saveFileData(String fileName) throws IOException {
        FileWriter fileWriter=new FileWriter(fileName);
        BufferedWriter bufferedWriter=new BufferedWriter(fileWriter);
        bufferedWriter.write(1);
        bufferedWriter.close();
    }

    public static void main(String[] args) throws IOException {
        Scanner scanner=new Scanner(System.in);
        String fileName=scanner.next();
        saveFileData(fileName);
        FileReader reader=new FileReader("1.txt");
        BufferedReader bufferedReader=new BufferedReader(reader);
    }
}
